package cn.tedu.tmall.front.mall.dao.repository;

import cn.tedu.tamll.common.consts.CartCacheConsts;
import cn.tedu.tmall.front.mall.pojo.po.CartCachePO;

import java.util.List;

public interface ICartCacheRepository extends CartCacheConsts {
    void add(Long id, CartCachePO cartCachePO);

    List<CartCachePO> list(Long userId);

    void modifyOrReplaceGoodNum(Long userId, Long goodsId, Integer goodsNumber,boolean isReplace);

    void incrRaw(Long userId, Long goodsId, Integer goodsNumber);

    void pick(Long userId, Long goodsId);

    void pickoff(Long userId, Long goodsId);

    void deleteByUserIdAndGoodsId(Long userId, Long goodsId);
}
